package com.windersgroup.querynumber.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.windersgroup.querynumber.entity.UserIpMapping;
import com.windersgroup.querynumber.mapper.UserIpMappingMapper;
import com.windersgroup.querynumber.service.UserIpMappingService;

@Service("userIpMappingService")
public class UserIpMappingServiceImpl implements UserIpMappingService {

	@Autowired
	private UserIpMappingMapper userIpMappingMapper;
	
	@Override
	public List<UserIpMapping> findAll() {
		return userIpMappingMapper.findAll();
	}

	@Override
	public List<UserIpMapping> findUserByIp(String ipStr) {
		return userIpMappingMapper.findUserByIp(ipStr);
	}

}
